home *** CD-ROM | disk | FTP | other *** search
- --------------------------------
- ROBOTANK command descriptions
- --------------------------------
-
- NOTE: commands marked with * are NOT implemented yet!!
- (Results could be dangerous!)
-
- var - is a symbol/variable of up to 15 characters.
- The first character must be A-Z
- (lower-case converted to upper-case)
- These are created with the MAKE command (see below)
-
- :line - is a line-reference with the same spec's as a symbol
-
- num - can be either a symbol or a numeric constant (-32000 to 32000)
-
- --------------------------------------------------------------------
-
- :labelref - Line reference, any text after label is ignored
-
- MAKE var - Make space for symbol named "var"
- (should appear at the start of source file)
-
- WHEREX var - Place tanks current X coordinate in symbol "var"
-
- WHEREY var - Place tanks current Y coordinate in symbol "var"
-
- CGDIR var - Place tanks current GUN direction in symbol "var"
-
- CTDIR var - Place TANKS current direction in symbol "var"
-
- SELECT num * Select weapon "num"
-
- JEQ num1,num2,:line - if num1 = num2 go to ":line"
-
- JLT num1,num2,:line - if num1 < num2 go to ":line"
-
- JGT num1,num2,:line - if num1 > num2 go to ":line"
-
- JNEQ num1,num2,:line - if num1 <> num2 go to ":line"
-
- LEFT - Turn tank counter-clockwise
-
- RIGHT - Turn tank clockwise
-
- GLEFT - Turn GUN counter-clockwise
-
- GRIGHT - Turn GUN clockwise
-
- SET var,num - sets symbol "var" to "num"
-
- ADD var,num - adds "num" to the current value of "var"
-
- RAND var,num - places a random value from 1-"num" into "var"
-
- MOVE - Move tank in current direction
-
- GOTO :line - move program execution to ":line"
-
- FIRE - Fire currently selected weapon in current gun direction
-
- CALL :line - Call sub-routine beginning at ":line"
-
- LOADED var * Place a 1 in "var" if weapon ready to fire,
- or 0 if not.
-
- RETURN - Return from sub-routine
-
- -------------------------------------------------------------------
-
- TANK and GUN Directions: 1
- 8 | 2
- \ | /
- 7 ---+--- 3
- / | \
- 6 | 4
- 5
-
- -------------------------------------------------------------------
-